package com.allwees.bs.module.ums.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.allwees.bs.module.base.service.BoService;
import com.allwees.bs.module.ums.entity.CustomerCash;
import com.allwees.bs.module.ums.entity.CustomerCashLog;
import com.allwees.bs.module.ums.req.CustomerCashCrudReq;
import com.allwees.bs.module.ums.req.query.CustomerCashLogQueryReq;

import java.math.BigDecimal;

/**
 * @author mouhaining
 * @since 2020-6-1 11:48
 */
public interface CustomerCashService extends BoService<CustomerCash> {

    /**
     * @param req
     */
    void addAmt(CustomerCashCrudReq req);

    /**
     *
     * @param userUuid
     * @return
     */
    CustomerCash findByUserUuid(String userUuid);

    /**
     *
     * @param userUuid
     * @param amtCash
     */
    void refunded(String userUuid, BigDecimal amtCash);

    /**
     *
     * @param page
     * @param req
     * @return
     */
    Page<CustomerCashLog> logPage(Page<CustomerCashLog> page, CustomerCashLogQueryReq req);
}
